<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    img{
      /*行内元素垂直对齐方式： top middle  bottom baseline(基线)*/
       vertical-align: middle;
    }
  </style>
</head>
<body>
<input type="text">
<img src="../作业.png" alt="" style="width: 50px">

</body>
</html>